Skip to content

POST方法发送JSON请求

构造请求

编写POST请求保存为本地文件如request.file

httprequest
POST / HTTP/1.1
Host: www.example.com

{"userName":"*","userPass":"*"}

发送请求

使用r参数引用该文件

shell
sqlmap -r request.file --level=5 risk=3 --force-ssl

参考

https://stackoverflow.com/questions/40628603/sqlmap-post-json-data-as-body